package com.zmj.sy.mom.srv.aps.controller;

import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseListResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.team.TeamReportReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.team.TeamReportResVo;
import com.zmj.sy.mom.srv.aps.service.TeamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Api(tags = "班组统计")
@RestController
@RequestMapping("/team")
public class TeamController {

    private final TeamService teamService;

    @ApiOperation("班组报表")
    @PostMapping("/report")
    public BaseListResVo<TeamReportResVo> report(@RequestBody TeamReportReqVo reqVo){
        return teamService.report(reqVo);
    }
}
